import { CustomComponent } from '/engine/index';

CustomComponent({
  options: {
    multipleSlots: true, // 允许插入多个插槽
  },
  properties: {
    title: {
      type: String,
      value: '提示',
    },
    visible: {
      type: Boolean,
      value: false,
    },
  },
  data: {},
  methods: {
    onCancel() {
      this.triggerEvent('cancel');
    },
    onConfirm() {
      this.triggerEvent('confirm');
    },
  },
});
